'''
  函数：
    1，功能性
    2，隐藏细节
'''

a = 1.23355
result = round(a, 3)
print(result)

# 定义 函数定义不能提升 默认返回None
def doSomething(a,b=2, **kw):
  # 形参
  return a,b,kw


# 序列解包 
# res1, res2 = doSomething(1) # 实参
# print(res1, res2)

a,b,c = 1,2,3
d = 4,5,6 # d是tuple
# print(d)

c = doSomething(b = 3, a = 4, name="zhangsan", sex="男")
print(c)

